package com.szh.mysobproject.viewmodel.app

import android.app.Service
import com.szh.mysobproject.http.ServiceCreator
import com.szh.mysobproject.http.request.api.MsgApi

object MsgNetwork {

    private val msgApi = ServiceCreator.create<MsgApi>()

    suspend fun getUnReadMsgCount() = msgApi.getUnReadMsgCount()

    suspend fun readMomentMsg(msgId: String) = msgApi.readMomentMsg(msgId)

    suspend fun readAtMeMsg(msgId: String) = msgApi.readAtMeMsg(msgId)

    suspend fun readQaMsg(msgId: String) = msgApi.readQaMsg(msgId)

    suspend fun readAllMsg() = msgApi.readAllMsg()
}
